import * as THREE from 'three';
const p1 = new THREE.Vector3(100, 25, 0); 
const p2 = new THREE.Vector3(100, -25, 25); 
const p3 = new THREE.Vector3(100, -25, -25); 
const geometry1 = new THREE.BufferGeometry().setFromPoints( [p1,p2,p3] ); 
const material1 = new THREE.MeshBasicMaterial({
	side:THREE.DoubleSide,
    color: 0x0000ff,
});
const mesh1 = new THREE.Mesh( geometry1,material1 ) 


const ray = new THREE.Ray()
ray.origin.set(0,0,0)
ray.direction = new THREE.Vector3(-5,0,0).normalize()
console.log('ray',ray);
const point = new THREE.Vector3()
ray.intersectTriangle(p1,p2,p3,false,point)
console.log('point',point);
const model = new THREE.Group();
model.add( mesh1)
export default {model};